//
//  DOPSExploitListItemsControllerViewController.m
//  Dopamine
//
//  Created by Lars Fröder on 29.04.24.
//

#import "DOPSExploitListItemsController.h"
#import "DOUIManager.h"

@interface DOPSExploitListItemsController ()

@end

@implementation DOPSExploitListItemsController

- (NSArray *)specifiers
{
    if (!_specifiers) {
        _specifiers = [super specifiers];
        NSString *recommendedIdentifier = [[self specifier] propertyForKey:@"recommendedExploitIdentifier"];
        for (PSSpecifier *specifier in _specifiers) {
            if ([specifier.identifier isEqualToString:recommendedIdentifier]) {
                specifier.name = [NSString stringWithFormat:@"%@ (%@)", specifier.name, DOLocalizedString(@"Recommended")];
            }
        }
    }
    return _specifiers;
}

@end
